﻿using System.Diagnostics;

namespace kill1C.Utils
{
    static class AppProc
    {
        public static int PID;
        public static int SID;

        public static void GetCurrentProcessInfo()
        {
            try
            {
                using (Process p = Process.GetCurrentProcess())
                {
                    PID = p.Id;
                    SID = p.SessionId;
                    p.PriorityClass = ProcessPriorityClass.BelowNormal;
                }
            }
            catch { }
        }
    }
}
